<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>FuseKit2.1: class com.mosesSupposes.fuse.ZigoEngine
</title><link type="text/css" rel="stylesheet" href="../../../as2doc.css"></head>
<body framespacing="0" topmargin="6" leftmargin="6" marginheight="6" marginwidth="6">
<div class="docindex"><a href="../../../index-right.html" class="head">Page Principale</a> | <a href="../../../com/mosesSupposes/fuse/package-summary.html" class="head" target="classFrame">Package</a> | <a href="../../../index-all.html" class="head">Index</a> | <a href="../../../help-doc.html" class="head">Aide</a></div>
<table border="0" cellpadding="0" cellspacing="4" width="100%" class="subnavigation"> <tr> <td><a href="Shortcuts.html">Pr&eacute;c&eacute;dent</a> | <a href="ZManager.html">Suivant</a></td> <td><a href="../../../index.html" target="_top">Frames (avec navigation)</a> | <a href="ZigoEngine.html" target="_top">Sans Frames</a></td> </tr> <tr> <td>Sommaire: <a href="#field_summary">Champs</a> | Propri&eacute;t&eacute; | Constructeur | <a href="#method_summary">M&eacute;thode</a></td> <td>D&eacute;tail: <a href="#field_detail">Champs</a> | Propri&eacute;t&eacute; | Constructeur | <a href="#method_detail">M&eacute;thode</a>
</td> </tr>
</table>
<hr size="1"><span class="packagename">com.mosesSupposes.</span><span class="packagename">fuse</span><br>
<h2>class ZigoEngine</h2>
<p></p>
<pre class="code">Object
  |
  +--<b>com.mosesSupposes.</b><b>fuse.ZigoEngine
</b> </pre>
<br>
<hr size="1">class <b>ZigoEngine</b> <br>extends Object
 <p></p>Un moteur robuste et central de calcul pour tout tweens cod&eacute;s d'un swf publi&eacute; en AS2.<br>
<br>
<p></p>
<dl compact> <dt><b>Utilisation:</b> </dt> <dd> <div class="comment">Vous pouvez mettre en place votre projet, afin qu'il utilise le moteur ZigoEngine, de ces diff&eacute;rentes fa&ccedil;ons: <ul> <li>importez tout simplement cette classe et commencez &agrave; utiliser ses m&eacute;thodes statiques telles que <a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#doTween">doTween</a>. <br>- Vous avez la possibilit&eacute; d'en augmenter les capacit&eacute;s en utilisant <a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#register">register</a>.<br> </li> <li>Ou bien utilisez <a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#simpleSetup">simpleSetup</a> pour ajouter des raccourcis de tweens tels-que  <code>alphaTo</code>  aux MovieClips, Boutons et TextFields. </li> </ul> <br>&Eacute;tendre les prototypes est enti&egrave;rement optionnel dans cette version - toute fonctionnalit&eacute; de raccourci est retir&eacute;e du coeur de la classe moteur. <br> <br>&Eacute;v&egrave;nements dispatch&eacute;s par ZigoEngine (cf <a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#addListener">addListener</a> pour plus d'infos): <ul> <li><code>onTweenAdd</code></li> <li><code>onTweenInterrupt</code> </li> </ul>&Eacute;v&egrave;nements dispatch&eacute;s individuellement par les objets cibles (cf <a href="../../../com/mosesSupposes/fuse/ZManager.html">ZManager</a> pour plus d'infos): <ul> <li><code>onTweenStart</code></li> <li><code>onTweenUpdate</code></li> <li><code>onTweenEnd</code></li> </ul> </div> </dd>
</dl>
<p></p>
<br>
<dl compact> <dt><b>Auteur:</b><br> </dt> <dd> <div class="comment">Moses Gunesch / MosesSupposes.com / ZigoEngine bas&eacute; sur les concepts de Ladislav Zigo, Zeh Fernando</div> </dd>
</dl>
<p></p>
<dl compact> <dt><b>Version:</b></dt> <dd> <div class="comment">2.1</div> </dd>
</dl>
<p></p>
<p></p>
<hr size="1">
<table border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="2"><a name="field_summary"></a> <h2>Sommaire des champs</h2></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#AUTOSTOP">AUTOSTOP</a>: Boolean = false </td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>(Legacy) Option to stop all tweening props in target as a new tween is added.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#DURATION">DURATION</a>: Number = 1 </td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Default tween duration if unspecified.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#EASING">EASING</a>: Object = "easeOutQuint" </td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Default easing if unspecified.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#OUTPUT_LEVEL">OUTPUT_LEVEL</a>: Number = 1 </td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Controls how much feedback the engine outputs, helpful for debugging.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#ROUND_RESULTS">ROUND_RESULTS</a>: Boolean = false </td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>If set true the engine always rounds its math (helpful with pixelfonts).</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#SKIP_LEVEL">SKIP_LEVEL</a>: Number = 1 </td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>(Advanced) Sets default engine behavior for situations where tweens fail to affect a visible change or have no duration.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#TIME_MULTIPLIER">TIME_MULTIPLIER</a>: Number = 1 </td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Debug feature:</i> <i>Skips, speeds up, or slows all tweens globally.</i> <i>All time values in ZigoEngine and Fuse are multiplied by this number.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#VERSION">VERSION</a>: String = FuseKitCommon.VERSION + ", ZigoEngine based on concepts by Ladislav Zigo, laco.wz.cz/tween"</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Enables kit version to be retrieved at runtime or when reviewing a decompiled swf.</i> <br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td colspan="2"><a name="method_summary"></a> <h2>Sommaire de M&eacute;thode</h2></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#addListener">addListener</a> ( handler: Object ): Void</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>(Advanced) Use this method to add a listener for "onTweenAdd" and "onTweenInterrupt" events, which are broadcast directly by the engine.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#deinitialize">deinitialize</a> ( target: Object ): Void</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>(Advanced) Clears targets from being used with the engine.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#doShortcut">doShortcut</a> ( targets: Object, methodName: String ): String</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>An alternative to <a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#doTween">doTween</a> that accepts Shortcut syntax.</i> <i><b>Requires registration of the Shortcuts class.</b></i><i></i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#doTween">doTween</a> ( targets: Object, props: Object, endvals: Object, seconds: Number, ease: Object, delay: Number, callback: Object ): String</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>G&eacute;n&egrave;re et lance imm&eacute;diatement une ou plusieurs interpolations de propri&eacute;t&eacute; sur une ou plusieurs cibles.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#ffTween">ffTween</a> ( targs: Object, props: Object, suppressEndEvents: Boolean ): Void</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Fast-forwarding a tween ends it and removes it from the engine.</i> <br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#getColorKeysObj">getColorKeysObj</a> ( targOrTransObj: Object ): Object</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>(General) Provides readings by keyword for a target object or Flash7-style color-transform object.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#getColorTransObj">getColorTransObj</a> ( type: String, amt: Number, rgb: Object ): Object</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>(General) Generates a generic Flash7-style color-transform object with props like ra, etc., by keyword.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#getControllerDepth">getControllerDepth</a> ( ): Number</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Depth of the ZigoEnginePulse clip.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#getTweens">getTweens</a> ( targ: Object ): Number</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Returns the number of tweens active in a target object.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#getUpdateInterval">getUpdateInterval</a> ( ): Number</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#initialize">initialize</a> ( target: Object ): Void</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>(Advanced) Prepares targets for use with engine.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#isPlaying">isPlaying</a> ( ): Boolean</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Returns true if the engine contains tweens and is running updates on a pulse</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#isTweening">isTweening</a> ( targ: Object, prop: String ): Boolean</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Test if a target and optionally a specific property is being handled by the engine.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#isTweenLocked">isTweenLocked</a> ( targ: Object ): Boolean</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Locks tweens and prevents from running until tween is unlocked.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#isTweenPaused">isTweenPaused</a> ( targ: Object, prop: String ): Boolean</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Test whether any or a specific property is paused in a target object</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#lockTween">lockTween</a> ( targ: Object, setLocked: Boolean ): Void</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Locks a target to prevent tweens from running until target is unlocked.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#pauseTween">pauseTween</a> ( targs: Object, props: Object ): Void</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Pause one or more tweens</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#register">register</a> ( classReference: Function ): Void</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Une commande de setup optionnelle qui d&eacute;clare des classes additionnelles &agrave; utiliser avec le moteur ZigoEngine.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#removeListener">removeListener</a> ( handler: Object ): Void</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Remove a listener for onTweenAdd or onTweenInterrupt events.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#removeTween">removeTween</a> ( targs: Object, props: Object ): Void</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Remove specific or all tweening properties from specific or all tweening targets in engine.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#resumeTween">resumeTween</a> ( targs: Object, props: Object ): Void</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Unpause one or more tweens.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#rewTween">rewTween</a> ( targs: Object, props: Object, pauseFlag: Boolean, suppressStartEvents: Boolean ): Void</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Rewinds and either pauses or restarts one or more tweens</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#setColorByKey">setColorByKey</a> ( targetObj: Object, type: String, amt: Number, rgb: Object ): Void</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>(General) Color-transforms a target by keyword.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#setControllerDepth">setControllerDepth</a> ( depth: Number ): Void</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Creates a clip in the _root timeline called "ZigoEnginePulse" or sets its depth</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#setUpdateInterval">setUpdateInterval</a> ( time: Number ): Void</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>When set, the engine will run on a setInterval pulse instead of a frame pulse.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#simpleSetup">simpleSetup</a> ( shortcutsClass: Function ): Void</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>An alternative setup command that extends prototypes with shortcuts like <code>alphaTo</code>.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#skipTweenTo">skipTweenTo</a> ( seconds: Number, targs: Object, props: Object ): Void</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Jumps a tween to a specific point in its duration.</i><br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td valign="top" align="right" nowrap class="summary_table">public static <br></td> <td valign="top" align="left" nowrap width="100%" class="summary_table"><a href="#unpauseTween">unpauseTween</a> ( targs: Object, props: Object ): Void</td> </tr> <tr> <td valign="top" align="right" nowrap="false" class="summary_table_description"></td> <td valign="top" align="left" nowrap="false" class="summary_table_description"><i>Legacy - see <a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#resumeTween">resumeTween</a></i>
<br></td> </tr> <tr> <td colspan="2"><br></td> </tr> <tr> <td colspan="2"><br></td> </tr>
</table>
<hr size="1"><a name="field_detail"></a>
<h2>Field Documentation
</h2><a name="AUTOSTOP"></a>
<h3>AUTOSTOP</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><span class="code"><span class="modifier">public static </span><span class="askeyword">var </span>AUTOSTOP:</span> <span class="code">Boolean = false </span></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">(Legacy) Option to stop all tweening props in target as a new tween is added. 
<p></p></td> </tr>
</table><a name="DURATION"></a>
<h3>DURATION</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><span class="code"><span class="modifier">public static </span><span class="askeyword">var </span>DURATION:</span> <span class="code">Number = 1 </span></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Default tween duration if unspecified. <p></p> <dl compact> <dt><b>Utilisation:</b></dt> <dd> <div class="comment"> <pre>// set once at beginning of program to change engine default setting.
ZigoEngine.DURATION = .5;
</pre> </div> </dd> </dl> <p></p></td> </tr>
</table><a name="EASING"></a>
<h3>EASING</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><span class="code"><span class="modifier">public static </span><span class="askeyword">var </span>EASING:</span> <span class="code">Object = "easeOutQuint"</span></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Default easing if unspecified. <p></p> <div class="comment">This default is hardcoded in the engine and doesn't require that <a href="../../../com/mosesSupposes/fuse/PennerEasing.html">PennerEasing</a> is registered. However you will need to register that class with the engine if you wish to set this property to a similar string like "easeOutQuad". You may also set this property to any standard easing function (like <code>mx.transitions.</code><code>easing</code>).</div> <p></p> <dl compact> <dt><b>Utilisation:</b></dt> <dd> <div class="comment"> <pre>// Example with a style from PennerEasing
ZigoEngine.register(PennerEasing);
ZigoEngine.EASING = 'easeInOutExpo';
 
// or - Alternate example with an mx style
import mx.transitions.easing.Elastic;
ZigoEngine.EASING = Elastic.easeOut;
</pre> </div> </dd> </dl> <p></p></td> </tr>
</table><a name="OUTPUT_LEVEL"></a>
<h3>OUTPUT_LEVEL</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><span class="code"><span class="modifier">public static </span><span class="askeyword">var </span>OUTPUT_LEVEL:</span> <span class="code">Number = 1 </span></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Controls how much feedback the engine outputs, helpful for debugging. <p></p> <dl compact> <dt><b>Utilisation:</b>
            </dt> <dd> <div class="comment"> <pre>ZigoEngine.OUTPUT_LEVEL = 2;
            
            <pre>&lt;ul&gt;
            &lt;li&gt;0 = no traces,&lt;/li&gt; 
            &lt;li&gt;& warnings&lt;/li&gt;
            &lt;li&gt;2 = additional output&lt;/li&gt;
            &lt;/ul&gt; 
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="ROUND_RESULTS"></a>
<h3>ROUND_RESULTS</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><span class="code"><span class="modifier">public static </span><span class="askeyword">var </span>ROUND_RESULTS:</span> <span class="code">Boolean = false </span></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">If set true the engine always rounds its math (helpful with pixelfonts). <p></p> <div class="comment">Degradation in animation and performance is minor with this feature enabled. Hence it was left a global toggle with the assumption that it should only be set true for projects requiring rounding.</div> <p></p> <dl compact> <dt><b>Utilisation:</b></dt> <dd> <div class="comment"> <pre>// set once at beginning of program to change engine default setting.
ZigoEngine.ROUND_RESULTS = true;
</pre> </div> </dd> </dl> <p></p></td> </tr>
</table><a name="SKIP_LEVEL"></a>
<h3>SKIP_LEVEL</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><span class="code"><span class="modifier">public static </span><span class="askeyword">var </span>SKIP_LEVEL:</span> <span class="code">Number = 0 </span></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">(Advanced) Sets default engine behavior for situations where tweens fail to affect a visible change or have no duration. <p></p> <dl compact> <dt><b>Utilisation:</b></dt> <dd> <div class="comment"> <pre>// set once at beginning of program to change engine default setting.
ZigoEngine.SKIP_LEVEL = 2; </pre><b>No-duration tweens:</b> <br>Tweens with a 0-second duration set the property immediately at the time of the tween call, or after any delay. <br>This behavior has advantages and disadvantages. It is <i>recommended</i> that you purposefully use 0-second tweens to set properties that are handled by the engine at any time in your program, since this will effectively stop any potentially running tweens on that property. (Trying to set a property while it is being tweened usually has no effect.) However in some dynamic programs you may want tweens that end up having no duration to also skip their delay and/or callbacks and events - this can be controlled with SKIP_LEVEL. <br> <br><b> No-change tweens:</b> <br>Tweens at times end up being generated that affect no visual change. Normally the ZigoEngine operates under its legacy behavior, which is to run such tweens regardless. This can be good (the program's sequence will continue on a schedule) or bad (the tween is essentially invisible and will fire callbacks and events on update and end, which may cause confusion). In some cases you may want to skip past tweens that don't do anything visually. <br> <br>The <code>SKIP_LEVEL</code> default, as well as the per-tween <code>skipLevel</code> parameter (see <a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#doTween">doTween</a>) enable you to control the engine's behavior in these situations more accurately: <ul> <li>0= Default. <br>No-change tweens are run with their full duration, delay, and callbacks/events. No-duration tweens set the property and execute all callbacks and events immediately or after a delay.</li> <li>1= Skip no-change tweens. <br>Tweens that affect no change are discarded (both delay and duration are ignored). Callbacks/events are fired immediately. No-duration tweens ignore delay and set properties immediately.</li> <li>2= Do not fire events or callbacks for no-change or no-duration tweens. <br>No-change tween calls are entirely ignored. No-duration tweens ignore delay and set properties immediately. </li> </ul> <br>To review what property tweens were successfully added, <a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#doTween">doTween</a> returns a formatted list.
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="TIME_MULTIPLIER"></a>
<h3>TIME_MULTIPLIER</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><span class="code"><span class="modifier">public static </span><span class="askeyword">var </span>TIME_MULTIPLIER:</span> <span class="code">Number = 1 </span></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Debug feature: Skips, speeds up, or slows all tweens globally. All time values in ZigoEngine and Fuse are multiplied by this number. <p></p> <div class="comment">Affects all durations, delays, and time-based triggers kit-wide.  <br> <br>A reminder message like <code>[ ZigoEngine.</code><code>TIME_MULTIPLIER:</code> <code>20% ]</code> is sent to output each time the setting is changed, upon the start of the next tween (unless ZigoEngine.OUTPUT_LEVEL has been set to 0).  <br> <br>Set to 0 to fast-forward through all animation. Unlike <a href="../../../com/mosesSupposes/fuse/Fuse.html#fastForward">Fuse.</a><a href="../../../com/mosesSupposes/fuse/Fuse.html#fastForward">fastForward</a>, all callbacks and events associated with tweens are still fired, durations are simply set to 0. Note that based on <a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#SKIP_LEVEL">SKIP_LEVEL</a> settings this may alter some behaviors in your program.  <br> <br>Values between 0 and 1 cause tweens to run faster than their specified duration, on a percentage basis. For example a setting of .25 would reduce durations to 25% of their actual values, making tweens run 1-1/2 times faster.  <br> <br>Any value greater than 1 will cause tweens to run in slow motion by increasing durations on a percentage basis. For example a setting of 2 would force tweens to run at half speed.</div> <p></p> <dl compact> <dt><b>Utilisation:</b></dt> <dd> <div class="comment"> <pre>// set once at beginning of program to change engine default setting.
ZigoEngine.TIME_MULTIPLIER = .5; // run all tweens at double-speed. </pre> <br>(advanced) Note that for more complex debugging of Fuse sequences you may want to set this property inline during the sequence. Example: <pre>var testMode:Boolean = true;
function setTimeMultiplier(mult:Number):Void {
	if (testMode==true) ZigoEngine.TIME_MULTIPLIER = mult;
}
var f:Fuse = new Fuse();
f.scope = this;
// start sequence skipping through all tweens..
f.push({ func:setTimeMultiplier, args:0 });
// later in sequence return to normal speed..
f.push({ func:setTimeMultiplier, args:1 });
// etc.

</pre> </div> </dd> </dl> <p></p></td> </tr>
</table><a name="VERSION"></a>
<h3>VERSION</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><span class="code"><span class="modifier">public static </span><span class="askeyword">var </span>VERSION:</span> <span class="code">String =<span class="summary_table">FuseKitCommon.</span></span><span class="code"><span class="summary_table">VERSION + ", ZigoEngine based on concepts by Ladislav Zigo, laco.</span></span><span class="code"><span class="summary_table">wz.cz/tween"</span></span></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Enables kit version to be retrieved at runtime or when reviewing a decompiled swf. <p></p> <dl compact> <dt><b>Utilisation:</b></dt> <dd> <div class="comment"> <pre>trace(ZigoEngine.VERSION); // if the version is incorrect, clear your ASO cache.
</pre> </div> </dd> </dl> <p></p></td> </tr>
</table>
<hr size="1"><a name="method_detail"></a>
<h2>Documentation de M&eacute;thode
</h2><a name="addListener"></a>
<h3>addListener</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public static </span><span class="askeyword">function </span>addListener</span></td> <td align="left" valign="top"><span class="code">(handler:</span> <span class="code">Object):</span> <span class="code">Void</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">(Advanced) Use this method to add a listener for "onTweenAdd" and "onTweenInterrupt" events, which are broadcast directly by the engine. <p></p> <dl compact> <dt><b>Utilisation:</b></dt> <dd> <div class="comment">These events are special in that they are dispatched directly by the ZigoEngine class, unlike target-events such as <code>onTweenEnd</code> (see: <a href="../../../com/mosesSupposes/fuse/ZManager.html">ZManager</a> for more info).  <br> <br>The "onTweenAdd" event is fired when any doTween call is made, and passes the final parameters that will be sent to the internal ZManager instance in the following order: <ul> <li>An array of tween targets</li> <li>An array of property strings generated by the <code>ZManager.paramsObj</code> method.  <br>Note: _scale and _size are split into movieclip properties, and duplicate properties are stripped, with the exception of overlapping _fade / _alpha and overlapping color-transform tweens.</li> <li>A corresponding array of tween end-values for each validated property</li> <li>A validated numerical tween duration in seconds</li> <li>A valid easing function</li> <li>A validated numerical delay in seconds</li> <li>A specially-formatted and validated callback object generated by the <code>FuseKitCommon.parseCallback</code> method.</li> </ul> <pre>var myListener:Object = {
    onTweenAdd:function(targets:Array, props:Array, endvals:Array, 
                        seconds:Number, ease:Function, 
                        delay:Number, callback:Object):Void {
        trace("ZigoEngine is adding a tween:");
        trace(" -targets:"+targets.join(","));
        trace(" -props:"+props.join(","));
        trace(" -endvals:"+endvals.join(","));
        trace(" -seconds:"+seconds);
        // (easing function is never undefined)
        trace(" -delay:"+delay);
        trace(" -has callback:"+Boolean(callback.start.f!=null 
                                        || callback.upd.f!=null 
                                        || callback.end.f!=null));
    }
};
ZigoEngine.addListener(myListener); </pre> <br>The "onTweenInterrupt" event is fired in the following situations, and passes several additional parameters including "during" which can provide a clue as to which situation caused the interruption. <ul> <li>Another tween call overwrote one or more property tweens in progress. during = "add".</li> <li>A <code>removeTween</code> call stopped one or more tweens in progress. during = "remove".</li> <li>A target goes missing, for instance if a MovieClip was removed during a tween, or a target is deinitialized from the engine before its tweens complete. during = "update". </li> </ul>This ensures the event is fired even when targets go missing and are thus unable to dispatch the event. To aid in tracking targets in that situation, the internal <code>__zigoID__</code> property for each target is also passed in the event object. Any initialized/tweening target contains this read-only property, making it possible to advance-query then later identify targets after they're removed. Missing targets can be further identified by the "target" parameter of the event object (normally a reference to the actual tween target), which will be sent as a string like <code>[MISSING:</code><code>"clip1_mc"]</code>. 
<pre>var myListener:Object = {
	onTweenInterrupt:function(o:Object):Void {
		trace("Interruption detected:");
		trace(" -during cycle:"+o.during);
		trace(" -target:"+o.target);
		trace(" -target id:"+o.__zigoID__);
		trace(" -properties interrupted:"+(o.props).toString());
	}
};
ZigoEngine.addListener(myListener);
ZigoEngine.doTween(my_mc,"_alpha",0,2);

// click the mouse during the tween to receive the event.
function onMouseDown():Void {
	my_mc.removeMovieClip();
}
  </pre> </div> </dd> </dl> <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Param&egrave;tres:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">handler</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">the function or object that should be called
</div></td> </tr> </table> </dd> </dl></td> </tr>
</table><a name="deinitialize"></a>
<h3>deinitialize</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public static </span><span class="askeyword">function </span>deinitialize</span></td> <td align="left" valign="top"><span class="code">(target:</span> <span class="code">Object):</span> <span class="code">Void</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">(Advanced) Clears targets from being used with the engine. <p></p> <div class="comment">Removes AsBroadcaster functionality (and tweening shortcuts if the Shortcuts class was registered) from any object previously initialized using <code>initialize</code>.<br> <br> </div> <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Param&egrave;tres:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">target</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">One or more targets to initialize, or nothing/null to deinitialize base prototypes (for example to undo simpleSetup)</div></td> </tr> </table> </dd> </dl> <dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#initialize">initialize</a>
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="doShortcut"></a>
<h3>doShortcut</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public static </span><span class="askeyword">function </span>doShortcut</span></td> <td align="left" valign="top"><span class="code">(targets:</span> <span class="code">Object, </span> <br><span class="code"> methodName:</span> <span class="code">String):</span> <span class="code">String</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">An alternative to <a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#doTween">doTween</a> that accepts Shortcut syntax. <b>Requires registration of the Shortcuts class.</b> <p></p> <div class="comment">This idea thanks to Yotam Laufer. Example: <pre>ZigoEngine.doShortcut(my_mc, 'scaleTo', 200, 1, 'easeOutQuad'); </pre>See <a href="../../../com/mosesSupposes/fuse/ZigoEngine.html">ZigoEngine</a> introduction for instructions on registering Shortcuts to enable this feature.</div> <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Param&egrave;tres:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">targets</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">Tween target object or array of target objects</div></td> </tr> <tr> <td valign="top" align="left"><span class="parameter">methodName</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">The shorcut as a string, such as "alphaTo", followed by parameters that follow that shortcut's format.</div></td> </tr> </table> </dd> </dl> <dl compact> <dt><b>Retourne:</b></dt> <dd> <div class="comment">A comma-delimited string of props successfully added. When multipe targets were passed, a pipe-delimited series is returned to enable verification of individual properties per target.
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="doTween"></a>
<h3>doTween</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public static </span><span class="askeyword">function </span>doTween</span></td> <td align="left" valign="top"><span class="code">(targets:</span> <span class="code">Object, </span> <br><span class="code"> props:</span> <span class="code">Object, </span> <br><span class="code"> endvals:</span> <span class="code">Object, </span> <br><span class="code"> seconds:</span> <span class="code">Number, </span> <br><span class="code"> ease:</span> <span class="code">Object, </span> <br><span class="code"> delay:</span> <span class="code">Number, </span> <br><span class="code"> callback:</span> <span class="code">Object):</span> <span class="code">String</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left"><i>G&eacute;n&egrave;re et lance imm&eacute;diatement une ou plusieurs interpolations de propri&eacute;t&eacute; sur une ou plusieurs cibles.</i> <p></p> <div class="comment"> <pre>ZigoEngine.doTween(my_mc, '_x,_y', [100,150], 1, Strong.easeInOut); </pre>La syntaxe objet &agrave; la <a href="../../../com/mosesSupposes/fuse/Fuse.html">Fuse</a> peut aussi &ecirc;tre utilis&eacute;e si la classe <a href="../../../com/mosesSupposes/fuse/FuseItem.html">FuseItem</a> est d&eacute;clar&eacute;e (avec register): <pre>ZigoEngine.doTween({ target:my_mc, start_alpha:0, y:150, ease:Strong.easeInOut });</pre> </div> <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Param&egrave;tres:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">targets</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">Un objet cible ou un tableau d'objet &agrave; interpoler. <br>(<i>Toutes</i> les propri&eacute;t&eacute;s list&eacute;es dans le param&egrave;tre suivant seront interpol&eacute;es dans <i>toutes </i> les cibles sp&eacute;cifi&eacute;es.) </div></td> </tr> <tr> <td valign="top" align="left"><span class="parameter">props</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">Cha&icirc;nes de caract&egrave;res comme<code>"_x"</code>, liste de propri&eacute;t&eacute;s s&eacute;par&eacute;es par des virgules <code>"_x,_y"</code>, ou en tableau comme <code>["_x","_y"]</code>.  <br>Le moteur accepte n'importe quelle propri&eacute;t&eacute; existante dans la cible m&ecirc;me une variable que vous auriez customis&eacute;, ainsi que les propri&eacute;t&eacute;s sp&eacute;ciales suivantes: <ul> <li><code><b>_bezier_</b></code> Object <b><code>{x:</code></b><b><code>,y:</code></b><b><code>,controlX:</code></b><b><code>,controlY:</code></b><b><code>}</code></b> g&eacute;n&egrave;re un d&eacute;placement en courbe de bezier. <ul> <li>Les valeurs relatives (cha&icirc;ne) sont possibles pour tous les param&egrave;tres</li> <li>Seulement deux propri&eacute;t&eacute;s sont n&eacute;cessaires pour interpoler une courbe</li> <li>Exemple, d&eacute;placement sur la droite en arc de cercle vers le haut: <br><code>ZigoEngine.doTween(clip1, <b>"_bezier_", {x:</b></code><code><b>"100",controlY:</b></code><code><b>"-50"}</b>);</code></li> </ul> </li> <li><code><b>_brightness</b></code> -100=noir, 0=normal, 100=blanc</li> <li><code><b>_brightOffset</b></code> effet densit&eacute; des couleurs (Burn). -100=noir, 0=normal, 100=blanc</li> <li><code><b>_colorReset</b></code> 100 = restaure enti&egrave;rement les couleurs de la cible.</li> <li><code><b>_colorTransform</b></code> objet g&eacute;n&eacute;rique dans dans le format de "transform" de Flash7: <b><code>{ra:</code></b><b><code>,rb:</code></b><b><code>,etc.}</code></b></li> <li><code><b>_contrast</b></code> 0=gris, 100=normal, 200=fort-contraste, plus=posteriz&eacute;</li> <li><b><code>_fade</code></b> comme <span class="code"><b>_alpha + _visible</b></span>. G&eacute;n&eacute;ralement utilis&eacute; avec des valeurs 0 ou 100 . <ul> <li>La visibilit&eacute; est coup&eacute;e quand les tweens finissent avec des valeurs inf&eacute;rieures &agrave; 50</li> <li>La visibilit&eacute; est enclench&eacute;e quand un tween <span class="code">_fade</span> d&eacute;marre </li> </ul> </li> <li><code><b>_frame</b></code> Tween la timeline d'un MovieClip cible vers une frame de cette timeline.</li> <li><code><b>_invertColor</b></code> 100 = effet de n&eacute;gatif Photo.</li> <li><code><b>_scale</b></code> met <span class="code">_xscale</span> et <span class="code">_yscale</span> &agrave; la m&ecirc;me valeur.</li> <li><code><b>_size</b></code> met <span class="code">_width</span> et <span class="code">_height</span>&agrave; la m&ecirc;me valeur.</li> <li><code><b>_tint</b></code> Accepte diff&eacute;rents formats: <ul> <li><span class="code">0x000000</span> et <span class="code">"#000000"</span> hex formats </li> <li><span class="code">null</span> (reinitialise &agrave; la couleur d'origine)</li> <li>Objet avec teinte (tint) &amp; pourcentage: <br><code><b>{tint:</b></code><code>Number/null/hexString<b>, percent:</b></code><code>Number/String<b>}</b></code>.</li> </ul> </li> <li><code><b>_tintPercent</b></code> Valeur entre 0 et 100 </li> </ul>Quand <a href="../../../com/mosesSupposes/fuse/FuseFMP.html">FuseFMP</a> est d&eacute;clar&eacute;e, un grand nombre de propri&eacute;t&eacute;s de BitmapFilter sont tweenables: <ul> <li><code>Blur_blurX, etc.</code> le format suit la convention suivante nomDuFiltre+"_"+ propri&eacute;t&eacute;.</li> </ul> </div></td> </tr> <tr> <td valign="top" align="left"><span class="parameter">endvals</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">valeur de fin d'un tween ou, le cas &eacute;ch&eacute;ant, un tableau de valeurs de fins correspondantes. Une seule valeur de fin peut tr&egrave;s bien &ecirc;tre utilis&eacute;e avec de multiples propri&eacute;t&eacute;s. <br>Plusieurs formats possibles:<br> <ul> <li><b>Number</b> Une valeur de fin normale, absolue. Tweener _x de 10 dans la timeline principale bouge de 10px depuis le bord gauche du la sc&egrave;ne (Stage).</li> <li><b>Cha&icirc;ne (String) - Valeurs relatives:</b> Passer un nombre sous forme de cha&icirc;ne du genre "10" or "-10" calculera la valeur de fin relativement &agrave; la position de d&eacute;part du tween. <br>Exemples: Tweener _x to "10" bouge un clip de 10px vers la droite de sa position. <br>Tweener _rotation a une valeur cha&icirc;ne negative comme  "-90" fait une rotation dans le sens inverse des aiguilles d'une montre.</li> <li><b>Bezier, tint, ou objet color-transform </b> cf les propri&eacute;t&eacute;s <code>_bezier_, _colorTransform, _tint</code> plus haut.</li> <li><b>Objet Multi-valeurs  ou tableau (Array)</b> - (Niveau avanc&eacute;) Une nouvelle fonctionalit&eacute; qui permet de tweener directement des valeurs multiples dans un Objet ou un tableau. Notez que comme toute variable personnalis&eacute;e, ces objets doivent exister et avoir des valeurs num&eacute;riques avant d'&ecirc;tre tween&eacute;s. <br><code>var myObj:</code><code>Object = {x:</code><code>0,y:</code><code>0,z:</code><code>0}; ZigoEngine.doTween(this, "myObj", { x:</code><code>1, y:</code><code>2, z:</code><code>3 });</code> <br> <br>Notez aussi que puisque ce param&egrave;tre accepte d&eacute;j&agrave; un tableau pour d'&eacute;ventuelles valeurs de fins multiples, vous devez l'inclure dans un second tableau: <br><code>var myArray:</code><code>Array = [ 0, 0 ]; ZigoEngine.doTween(this, "myArray", [[10,20]]);</code></li> <li><b>Tableau de couleurs</b> - (Niveau avanc&eacute;) Tweener un tableau de valeurs de couleurs peut s'av&eacute;rer utile dans des situations comme de tweener les propri&eacute;t&eacute;s d'un d&eacute;grad&eacute; qui sera re-dessin&eacute; &agrave; chaque rafra&icirc;chissement du tween. Tout tableau ayant un nom contenant 'colors' (peu importe la casse) sera g&eacute;r&eacute; par le moteur comme un tableau de valeurs de couleurs. Notez qu'en interne les colortransforms ne sont appliqu&eacute; &agrave; aucune cible, juste mis &agrave; jour dans le tableau. <br>Exemple: <code>ZigoEngine.doTween(this, "myColors", [[ 0x000000, 0xFFFFFF ]], 1, null, 0, { scope:</code><code>this, updfunc:</code><code>'redrawGradient' });</code> </li> </ul> <br>(Niveau avanc&eacute;) Exemple de tween d'objet Matrice pour bouger et distordre un clip (&agrave; partir de Flash 8 uniquement): <pre>import com.mosesSupposes.fuse.*;
import flash.geom.Matrix;
import flash.geom.Transform;
ZigoEngine.register(PennerEasing);
var myMatrix:Matrix = new Matrix();
var boxTrans:Transform = new Transform(box);
function applyMatrixTrans():Void { boxTrans.matrix = myMatrix; }
ZigoEngine.doTween(	this, "myMatrix", {a:.5, c:.5, tx:200 },
1, 'easeOutBounce', 0, {updfunc:applyMatrixTrans});</pre> </div></td> </tr> <tr> <td valign="top" align="left"><span class="parameter">seconds</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">Dur&eacute;e de tween. Si aucune valeur n'est pass&eacute;e la valeur par d&eacute;faut vaudra celle de <code>ZigoEngine.</code><code>DURATION</code>. </div></td> </tr> <tr> <td valign="top" align="left"><span class="parameter">ease</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">Accept un nombre de format selon les fonctionalit&eacute;s d&eacute;clar&eacute;s (pass&eacute; &agrave; la fonction statique register) : <ul> <li>fonction - comme <code>mx.transitions.</code><code>easing.</code><code>Strong.</code><code>easeInOut</code></li> <li>Cha&icirc;ne -raccourci- <code>"easeInOutQuint"</code> Ou n'importe quel nom de fonction de <a href="../../../com/mosesSupposes/fuse/PennerEasing.html">PennerEasing</a></li> <li>Tableau g&eacute;n&eacute;r&eacute; par le Custom Easing Tool. (Ce panneau sp&eacute;cial est install&eacute; dans Flash quand vous installez le kit Fuse v2.1 ou la derni&egrave;re extension MXP). Notez que la classe<a href="../../../com/mosesSupposes/fuse/CustomEasing.html">CustomEasing</a> doit &ecirc;tre d&eacute;clar&eacute;e pour utiliser cette fonctionnalit&eacute;</li> <li>null ou rien - donne par d&eacute;faut la valeur de <code>ZigoEngine.</code><code>EASING</code> si affect&eacute;e, ou PennerEasing.easeOutQuint, qui est cod&eacute;e en dur dans le moteur comme fonction par d&eacute;faut.</li> </ul> </div></td> </tr> <tr> <td valign="top" align="left"><span class="parameter">delay</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">les secondes &agrave; attendre avant de d&eacute;marrer le tween La Start callback ainsi que l'&eacute;v&egrave;nement <code>onTweenStart</code>sont d&eacute;clench&eacute;s &agrave; la fin du d&eacute;lai. </div></td> </tr> <tr> <td valign="top" align="left"><span class="parameter">callback</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">fonction, cha&icirc;ne, ou objet  <br> <br>Le kit essaye d'analyser les callbacks sous plusieurs formats. Notez que pour que les callbacks s'ex&eacute;cutent  correctement il est crucial que la port&eacute;e "this", dans laquelle sera localis&eacute; et d&eacute;clench&eacute; la fonction, soit d&eacute;fini. Bien que le moteur souvent localisera avec succ&egrave;s vos callbacks l'option recommand&eacute;e est <b>l'Objet Callback ,</b> qui est le plus stable, demande le moins d'analyse (parsing) et vous permet de d&eacute;finir clairement la port&eacute;e tout en apportant quelques option de tween suppl&eacute;mentaires. <br> <ol> <li><b>Function</b>  <br><code>ZigoEngine.doTween(mc,"_x",100,1,"linear",0, myCallback);</code> <ul> <li>R&eacute;f&eacute;rence: <code>myCallback</code></li> <li>String: <code>"myCallback"</code></li> <li>Inline: <code>function(){ ...</code> <code>}</code></li> <li>Delegate: <code>mx.</code><code>utils.</code><code>Delegate.create(....</code><code>)</code> - rajoute de la port&eacute;e</li> </ul> </li> <li><b>Easyfunc String</b> <em>(les Shortcuts doivent &ecirc;tre d&eacute;clar&eacute;s pour utiliser cette fonctionnalit&eacute;)</em>  <br><code>ZigoEngine.doTween(mc,"_x",100,1,"linear",0, "this.myCallback(true);");</code> <ul> <li>exemple: <code>"trace('Le tween est fini');"</code></li> <li>Permet des port&eacute;es complexes et  de multiples types de donn&eacute;es en param&egrave;tre : <br><code>"myscope.myscope.myfunc(true,1,'hello',{paramA:</code><code>1,paramB:</code><code>false,[0,1],null);"</code></li> <li>Il vous est &eacute;galement possible d'utiliser des cha&icirc;nes easyfunc dans des objets callbacks (voir plus bas) pour les callbacks de start, d'update et de end.</li> <li> <li><i>Limitations:</i> Les cha&icirc;nes Easyfunc <em>ne sont pas</em> une bonne option dans le codage en classes. Elles fonctionnent tr&egrave;s bien dans la timeline de _root, elles renforcent le paradigme des Shortcuts. Quand une callback r&eacute;side dans une frame d'une timeline de  sous-clip, la cha&icirc;ne easyfunc devrait contenir le chemin absolue vers une fonction. Par exemple si clip1 existe dans la timeline _root  et contient la  fonction myCallback, utilisez <code>"clip1.myCallback();"</code>.  <br> <br>Une fa&ccedil;on pas vraiment pratique de contourner le probl&egrave;me pour les codeurs en classes est de d'affecter une r&eacute;f&eacute;rence locale comme. <code>var t:</code><code>MyClass=this;</code> pr&eacute;c&eacute;dant une easyfunc comme <code> "t.myMethod();"</code>, qui exploite la cha&icirc;ne de port&eacute;e durant l' <i>&eacute;val</i>. Encore une fois, les objets Callbacks sont conseill&eacute;s aux codeur OO.</li> </ul> </li> <li><b>Objets de Callback</b> <code>ZigoEngine.doTween(clip1,"_x","100",1,"easeOutQuad",0, {scope:</code><code>this, func:</code><code>"myCallback", args:</code><code>true});</code> <br><code>ZigoEngine.doTween(clip2,"_x","100",1,"easeOutQuad",0, { cycles:</code><code>2 }); // yoyo back once</code> <ul> <li><code>func</code> Fonction, nom de fonction sous forme de cha&icirc;ne, ou une cha&icirc;ne Easyfunc comme <code>"myClip.doSomething(true);"</code> (les <a href="../../../com/mosesSupposes/fuse/Shortcuts.html">Shortcuts</a> doivent &ecirc;tre d&eacute;clar&eacute;s pour utiliser Easyfunc.)</li> <li><code>scope</code> L'objet "this" dans lequel localiser et d&eacute;clencher la callback. Pas requis &agrave; tous les coups mais recommand&eacute; si le moteur n'arrive pas &agrave; localiser la callback ou s'il d&eacute;clenche une mauvaise fonction.</li> <li><code>args</code> Un argument o un tableau d'arguments &agrave; passer &agrave; la callback <code>func</code>.</li> <li><code>startfunc</code> Callback d&eacute;clench&eacute;e apr&egrave;s tout d&eacute;lai et au moment ou le tween d&eacute;marre. Supporte diff&eacute;rents formats (cf  func plus haut).</li> <li><code>startscope</code> Port&eacute;e sp&eacute;cifique pour la callback <code>startfunc</code>. Si non d&eacute;finie, la propri&eacute;t&eacute; <code>scope</code> sera utilis&eacute;e.</li> <li><code>startargs</code> Un argument o un tableau d'arguments &agrave; passer &agrave; la callback <code>startfunc</code>.</li> <li><code>updfunc</code> Callback d&eacute;clench&eacute;e par le moteur &agrave; mesure que les tweens dans l'action sont mis &agrave; jour. Supporte diff&eacute;rents formats (cf  func plus haut).</li> <li><code>updscope</code> Port&eacute;e sp&eacute;cifique pour la callback <code>updfunc</code>. Si non d&eacute;finie, la propri&eacute;t&eacute; <code>scope</code> sera utilis&eacute;e.</li> <li><code>updargs</code> Un argument o un ableau d'arguments &agrave; passer &agrave; la callback <code>updfunc</code>. </li> </ul> <br><b>Parametres additionels d'objets callback</b> <ul> <li><code>cycles</code> Tweens en aller et retour entre le d&eacute;but et la fin. <br>0 or "LOOP" = infinite cycles, default = 1, 2 or more to specify cycles.</li> <li><code>skipLevel</code> 0,1, ou 2.Un r&eacute;glage de comportement "avanc&eacute;" dans les cas d'&eacute;chec des tweens . Cf <a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#SKIP_LEVEL">SKIP_LEVEL</a>pour plus de d&eacute;tails. <br>Inclure ce param&egrave;tre dans un objet de callback red&eacute;finit la valeur par d&eacute;faut suivant chaque tween.</li> <li>Un cinqui&egrave;me param&egrave;tre <code>extra1</code> envoy&eacute; &agrave; la m&eacute;thode d'easing. Amplitude d'interpolation &Eacute;lastique (Elastic) ou taux de d&eacute;passement pour la m&eacute;thode Back.</li> <li>Un sixi&egrave;me param&egrave;tre <code>extra2</code> envoy&eacute; &agrave; la m&eacute;thode d'easing. P&eacute;riode d'&eacute;lasticit&eacute; de la m&eacute;thode d'easing "Elastic".</li> <li><code>roundResults</code> Red&eacute;finit la valeur de classe par d&eacute;faut <a href="#ROUND_RESULTS">ROUND_RESULTS</a> individuellement pour chaque tween. Tr&egrave;s utile par exemple, si la valeur par d&eacute;faut de la classe est <i>true</i> mais que vous souhaitiez ex&eacute;cuter un tween comme DropShadow_alpha qui n&eacute;cessite un intervalle de 0 &agrave; 1.</li> <li><span style="text-decoration:line-through"><code>easyfunc</code></span> Supprim&eacute; du kit. Les param&egrave;tres <code>func, startfunc, updfunc</code> acceptent maintenant des cha&icirc;nes easyfunc (cf func plus haut).</li> </ul> </li> </ol> </div></td> </tr> </table> </dd> </dl> <dl compact> <dt><b>Retourne:</b></dt> <dd> <div class="comment">Une cha&icirc;ne format&eacute;e: <br>Le moteur fait le rapport de quelle propri&eacute;t&eacute; a &eacute;t&eacute; ajout&eacute;e &agrave; sa liste de tweens actifs en retournant une cha&icirc;ne s&eacute;par&eacute;e par des virgules de seules propri&eacute;t&eacute;s qui ont &eacute;t&eacute; ajout&eacute;es avec succ&egrave;s, exemple <code>"_x"</code> ou <code>"_x,_y"</code>. Cela peut diff&eacute;rer l&eacute;g&egrave;rement de ce qui a &eacute;t&eacute; tween&eacute;, comme pour <code>"_width,_height"</code> quand <code>"_size"</code> fut tween&eacute;. <br> <br>Si plusieurs cibles sont pass&eacute;es au moteur, une s&eacute;rie de propri&eacute;t&eacute;s sont retourn&eacute;es dans l'ordre des cibles, ce qui permet une analyse granulaire des propri&eacute;t&eacute;s pour chaque cible.<br> <pre>var results:String = ZigoEngine.doTween([clip1,clip2,clip3],"_scale",100,null,0,{skipLevel:1});
// results: "_xscale,_yscale||_xscale,_yscale"
// parce que l'&eacute;chelle du clip2 &eacute;tait d&eacute;j&agrave; fix&eacute;e &agrave; 100 et que le skipLevel est r&eacute;gl&eacute; sur skip no-change tweens.
</pre> </div> </dd> </dl> <p></p></td> </tr>
</table><a name="ffTween"></a>
<h3>ffTween</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public static </span><span class="askeyword">function </span>ffTween</span></td> <td align="left" valign="top"><span class="code">(targs:</span> <span class="code">Object, </span> <br><span class="code"> props:</span> <span class="code">Object, </span> <br><span class="code"> suppressEndEvents:</span> <span class="code">Boolean):</span> <span class="code">Void</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Fast-forwarding a tween ends it and removes it from the engine. <p></p> <dl compact> <dt><b>Utilisation:</b></dt> <dd> <div class="comment"> <pre>ZigoEngine.doTween(clip1, "_x, _xscale, _alpha", ["100", 200, 0], 1, "easeInOutExpo");
// during tween, fast-forward just the slide and scale but allow the fade-out to run:
ZigoEngine.ffTween(clip1, "_x, _scale");
 
// fast-forward all tweens in multiple targets
ZigoEngine.ffTween([clip2,clip3,clip4]);</pre> </div> </dd> </dl> <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Param&egrave;tres:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">targs</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">a single target object, array of targets, or <a href="../../../com/mosesSupposes/fuse/FuseKitCommon.html#ALL">FuseKitCommon.</a><a href="../../../com/mosesSupposes/fuse/FuseKitCommon.html#ALL">ALL</a> for every active target</div></td> </tr> <tr> <td valign="top" align="left"><span class="parameter">props</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">a property string, array of property strings, null or nothing for all props, <a href="../../../com/mosesSupposes/fuse/FuseKitCommon.html#ALLCOLOR">FuseKitCommon.</a><a href="../../../com/mosesSupposes/fuse/FuseKitCommon.html#ALLCOLOR">ALLCOLOR</a> for any active color transform</div></td> </tr> <tr> <td valign="top" align="left"><span class="parameter">suppressEndEvents</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">if true is not passed, engine will fire 'onTweenEnd' event and any end-callbacks associated with the tween
</div></td> </tr> </table> </dd> </dl></td> </tr>
</table><a name="getColorKeysObj"></a>
<h3>getColorKeysObj</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public static </span><span class="askeyword">function </span>getColorKeysObj</span></td> <td align="left" valign="top"><span class="code">(targOrTransObj:</span> <span class="code">Object):</span> <span class="code">Object</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">(General) Provides readings by keyword for a target object or Flash7-style color-transform object. <p></p> <div class="comment">Inherent rounding errors are common! Especially when percentages are below 50. Even .tintString hex values may differ slightly.</div> <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Param&egrave;tres:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">targOrTransObj</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">target object or Flash7-style color-transform object with props like ra, etc.</div></td> </tr> </table> </dd> </dl> <dl compact> <dt><b>Retourne:</b></dt> <dd> <div class="comment">object may contain props brightness, brightOffset, contrast, invertColor, tint, tintPercent, and tintString
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="getColorTransObj"></a>
<h3>getColorTransObj</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public static </span><span class="askeyword">function </span>getColorTransObj</span></td> <td align="left" valign="top"><span class="code">(type:</span> <span class="code">String, </span> <br><span class="code"> amt:</span> <span class="code">Number, </span> <br><span class="code"> rgb:</span> <span class="code">Object):</span> <span class="code">Object</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">(General) Generates a generic Flash7-style color-transform object with props like ra, etc., by keyword. <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Param&egrave;tres:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">type</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">String <code>"brightness", "brightOffset", "contrast", "invertColor", or "tint"</code></div></td> </tr> <tr> <td valign="top" align="left"><span class="parameter">amt</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">Percentage, can be negative in some cases</div></td> </tr> <tr> <td valign="top" align="left"><span class="parameter">rgb</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">For "tint", a color value in 0x000000 or "#000000" format
</div></td> </tr> </table> </dd> </dl></td> </tr>
</table><a name="getControllerDepth"></a>
<h3>getControllerDepth</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public static </span><span class="askeyword">function </span>getControllerDepth</span></td> <td align="left" valign="top"><span class="code">():</span> <span class="code">Number</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Depth of the ZigoEnginePulse clip. <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Retourne:</b></dt> <dd> <div class="comment">numeric depth in _root
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="getTweens"></a>
<h3>getTweens</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public static </span><span class="askeyword">function </span>getTweens</span></td> <td align="left" valign="top"><span class="code">(targ:</span> <span class="code">Object):</span> <span class="code">Number</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Returns the number of tweens active in a target object. <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Param&egrave;tres:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">targ</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">target tween passed to determine if active, or <a href="../../../com/mosesSupposes/fuse/FuseKitCommon.html#ALL">FuseKitCommon.</a><a href="../../../com/mosesSupposes/fuse/FuseKitCommon.html#ALL">ALL</a> for every active target</div></td> </tr> </table> </dd> </dl> <dl compact> <dt><b>Retourne:</b></dt> <dd> <div class="comment">number of active tweens, which may be paused or playing
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="getUpdateInterval"></a>
<h3>getUpdateInterval</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public static </span><span class="askeyword">function </span>getUpdateInterval</span></td> <td align="left" valign="top"><span class="code">():</span> <span class="code">Number</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left"></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Retourne:</b></dt> <dd> <div class="comment">Number set using <code>setUpdateInterval</code>, or <code>undefined</code> if unset. </div> </dd> </dl> <p></p> <dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#setUpdateInterval">setUpdateInterval</a>
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="initialize"></a>
<h3>initialize</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public static </span><span class="askeyword">function </span>initialize</span></td> <td align="left" valign="top"><span class="code">(target:</span> <span class="code">Object):</span> <span class="code">Void</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">(Advanced) Prepares targets for use with engine. <p></p> <div class="comment">This method is never needed when extending prototypes with <code>simpleSetup</code>. It can be used to initialize specific targets to accept listeners prior to tweening - see <a href="../../../com/mosesSupposes/fuse/ZManager.html">ZManager</a> for an example. If the Shortcuts class was passed to <a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#register">register</a>, this method also copies all tweening shortcuts to targets. </div> <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Param&egrave;tres:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">target</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">One or more targets to initialize.</div></td> </tr> </table> </dd> </dl> <dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#deinitialize">deinitialize</a>
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="isPlaying"></a>
<h3>isPlaying</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public static </span><span class="askeyword">function </span>isPlaying</span></td> <td align="left" valign="top"><span class="code">():</span> <span class="code">Boolean</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Returns true if the engine contains tweens and is running updates on a pulse 
<p></p></td> </tr> <tr> <td valign="top" align="left"></td> </tr>
</table><a name="isTweening"></a>
<h3>isTweening</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public static </span><span class="askeyword">function </span>isTweening</span></td> <td align="left" valign="top"><span class="code">(targ:</span> <span class="code">Object, </span> <br><span class="code"> prop:</span> <span class="code">String):</span> <span class="code">Boolean</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Test if a target and optionally a specific property is being handled by the engine. <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Param&egrave;tres:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">targ</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">a single target object to test</div></td> </tr> <tr> <td valign="top" align="left"><span class="parameter">prop</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">a specific property string</div></td> </tr> </table> </dd> </dl> <dl compact> <dt><b>Retourne:</b></dt> <dd> <div class="comment">true if a matching active tween is found, which may be paused or playing 
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="isTweenLocked"></a>
<h3>isTweenLocked</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public static </span><span class="askeyword">function </span>isTweenLocked</span></td> <td align="left" valign="top"><span class="code">(targ:</span> <span class="code">Object):</span> <span class="code">Boolean</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Locks tweens and prevents from running until tween is unlocked. <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Param&egrave;tres:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">targ</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">Object to lock</div></td> </tr> </table> </dd> </dl> <dl compact> <dt><b>Retourne:</b></dt> <dd> <div class="comment">locked value
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="isTweenPaused"></a>
<h3>isTweenPaused</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public static </span><span class="askeyword">function </span>isTweenPaused</span></td> <td align="left" valign="top"><span class="code">(targ:</span> <span class="code">Object, </span> <br><span class="code"> prop:</span> <span class="code">String):</span> <span class="code">Boolean</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Test whether any or a specific property is paused in a target object <p></p> <dl compact> <dt><b>Utilisation:</b></dt> <dd> <div class="comment"> <pre>if (ZigoEngine.isTweenPaused(clip1,"_alpha")==true) { ... }</pre> </div> </dd> </dl> <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Param&egrave;tres:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">targ</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">a single target object to test</div></td> </tr> <tr> <td valign="top" align="left"><span class="parameter">prop</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">props a property string, null or nothing for any property, <a href="../../../com/mosesSupposes/fuse/FuseKitCommon.html#ALLCOLOR">FuseKitCommon.</a><a href="../../../com/mosesSupposes/fuse/FuseKitCommon.html#ALLCOLOR">ALLCOLOR</a> for any active color transform</div></td> </tr> </table> </dd> </dl> <dl compact> <dt><b>Retourne:</b></dt> <dd> <div class="comment">paused value
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="lockTween"></a>
<h3>lockTween</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public static </span><span class="askeyword">function </span>lockTween</span></td> <td align="left" valign="top"><span class="code">(targ:</span> <span class="code">Object, </span> <br><span class="code"> setLocked:</span> <span class="code">Boolean):</span> <span class="code">Void</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Locks a target to prevent tweens from running until target is unlocked. <p></p> <div class="comment">A warning message is thrown if your program attempts to call a tween on a locked target.</div> <p></p> <dl compact> <dt><b>Utilisation:</b></dt> <dd> <div class="comment">Accepts only one target at a time. <br> <br><a href="../../../com/mosesSupposes/fuse/FuseKitCommon.html#ALL">FuseKitCommon.</a><a href="../../../com/mosesSupposes/fuse/FuseKitCommon.html#ALL">ALL</a> is not accepted by lockTween, because that would only affect targets currently being tweened in the engine. (In a case where you want to stop or pause all running tweens use <code>pauseTween(FuseKitCommon.</code><code>ALL)</code> or <code>removeTween(FuseKitCommon.</code><code>ALL)</code>. The lockTween method is used to preset targets that usually are not currently being tweened in the engine. For more complex scenarios you should build an array of targets you need to affect, then use a for-loop to call the method on each one individually. <pre>// example of how you could manage a block of targets in your program with lock/unlock
var lockableTargs:Array = [clip1,clip2,clip5];
function toggleTweenLock(setLocked:Boolean):Void {
	for (var i:String in lockableTargs) ZigoEngine.lockTween(lockableTargs[i], setLocked);
}</pre> </div> </dd> </dl> <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Param&egrave;tres:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">targ</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">Object to lock</div></td> </tr> <tr> <td valign="top" align="left"><span class="parameter">setLocked</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">locked value</div></td> </tr> </table> </dd> </dl> <dl compact> <dt><b>See also:</b></dt> <dd> <div class="comment"><a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#pauseTween">pauseTween</a>, <a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#removeTween">removeTween</a>
</div> </dd> </dl> <p></p></td> </tr>
</table><a name="pauseTween"></a>
<h3>pauseTween</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public static </span><span class="askeyword">function </span>pauseTween</span></td> <td align="left" valign="top"><span class="code">(targs:</span> <span class="code">Object, </span> <br><span class="code"> props:</span> <span class="code">Object):</span> <span class="code">Void</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Pause one or more tweens <p></p> <dl compact> <dt><b>Utilisation:</b></dt> <dd> <div class="comment"> <pre>ZigoEngine.doTween(clip1, "_x, _xscale, _alpha", ["100", 200, 0], 1, "easeInOutExpo");
// during tween, pause just the slide and scale but allow the fade-out to run:
ZigoEngine.pauseTween(clip1, "_x, _scale");
 
// pause all engine tweens in the swf
ZigoEngine.pauseTween(FuseKitCommon.ALL);</pre> </div> </dd> </dl> <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Param&egrave;tres:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">targs</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">a single target object, array of targets, or <a href="../../../com/mosesSupposes/fuse/FuseKitCommon.html#ALL">FuseKitCommon.</a><a href="../../../com/mosesSupposes/fuse/FuseKitCommon.html#ALL">ALL</a> for every active target</div></td> </tr> <tr> <td valign="top" align="left"><span class="parameter">props</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">a property string, array of property strings, null or nothing for all props, <a href="../../../com/mosesSupposes/fuse/FuseKitCommon.html#ALLCOLOR">FuseKitCommon.</a><a href="../../../com/mosesSupposes/fuse/FuseKitCommon.html#ALLCOLOR">ALLCOLOR</a> for any active color transform
</div></td> </tr> </table> </dd> </dl></td> </tr>
</table><a name="register"></a>
<h3>register</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public static </span><span class="askeyword">function </span>register</span></td> <td align="left" valign="top"><span class="code">(classReference:</span> <span class="code">Function):</span> <span class="code">Void</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left"><i>Une commande de setup optionnelle qui d&eacute;clare des classes additionnelles &agrave; utiliser avec le moteur ZigoEngine.</i> <p></p> <div class="comment">Cette commande ne devrait &ecirc;tre appelle qu'un fois au d&eacute;but de votre programme. Utilisez soit cette commande soit <a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#simpleSetup">simpleSetup</a>, pas les deux. La diff&eacute;rence est que <code>register</code> relie les classe additionnelles sans alt&eacute;rer les prototypes. <pre>import com.mosesSupposes.fuse.*;
ZigoEngine.register(PennerEasing, Fuse, FuseFMP); </pre>Notez que pour garder un poids de fichier le plus petit possible vous ne devriez d&eacute;clarer que les fonctionnalit&eacute;s (classes) dont vous vous servez. Cochez &eacute;galement "omit trace actions" dans les param&egrave;tres de publications pour r&eacute;duire aussi le poids.</div> <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Param&egrave;tres:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">classReference</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">Passez n'importe laquelle de ces classes (toutes sont optionnelles): <ul> <li><code>Shortcuts</code> enclenche <a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#doShortcut">doShortcut</a>, le parsing des callbacks d'easyfunc'  , ainsi que l'option de copier / supprimer manuellement des shortcuts dans n'importe quelle cible ou prototype en utilisant <a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#initialize">initialize</a>. Cf <a href="../../../com/mosesSupposes/fuse/Shortcuts.html">Shortcuts</a></li> <li><code>PennerEasing</code> Permet d'utiliser avec le moteur des cha&icirc;ne de caract&egrave;res raccourcies telles que "easeOutQuad". Cf <a href="../../../com/mosesSupposes/fuse/PennerEasing.html">PennerEasing</a></li> <li><code>Fuse</code> enclenche Fuse pour des animations s&eacute;quentielles. Notez que si votre animation n'a pas de tweens vous pouvez tout simplement importer et utiliser Fuse sans le moteur ZigoEngine. Cf <a href="../../../com/mosesSupposes/fuse/Fuse.html">Fuse</a></li> <li><code>FuseFMP</code> enclenche des raccourcis comme <code>DropShadow_distance</code> a tweener dans le moteur. Cf <a href="../../../com/mosesSupposes/fuse/FuseFMP.html">FuseFMP</a></li> <li><code>FuseItem</code> enclenche le style de syntaxe Objet de Fusepour &ecirc;tre utilis&eacute; avec  <code>ZigoEngine.doTween</code>. Notez qu'il n'est as necessaire de d&eacute;clarer Fuse pour utiliser cette fonctionalit&eacute;. Cf <a href="../../../com/mosesSupposes/fuse/FuseItem.html">FuseItem</a>
</li> </ul> </div></td> </tr> </table> </dd> </dl></td> </tr>
</table><a name="removeListener"></a>
<h3>removeListener</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public static </span><span class="askeyword">function </span>removeListener</span></td> <td align="left" valign="top"><span class="code">(handler:</span> <span class="code">Object):</span> <span class="code">Void</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Remove a listener for the onTweenAdd or onTweenInterrupt events. <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Param&egrave;tres:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">handler</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">the function or object that should be called
</div></td> </tr> </table> </dd> </dl></td> </tr>
</table><a name="removeTween"></a>
<h3>removeTween</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public static </span><span class="askeyword">function </span>removeTween</span></td> <td align="left" valign="top"><span class="code">(targs:</span> <span class="code">Object, </span> <br><span class="code"> props:</span> <span class="code">Object):</span> <span class="code">Void</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Remove specific or all tweening properties from specific or all tweening targets in engine. <p></p> <dl compact> <dt><b>Utilisation:</b></dt> <dd> <div class="comment"> <pre>// stop any tweens running in clip0
ZigoEngine.removeTween(clip0);
 
ZigoEngine.doTween(clip1, "_x, _xscale, _alpha", ["100", 200, 0], 1, "easeInOutExpo");
// during tween, kill off just the slide and scale but allow the fade-out to run:
ZigoEngine.removeTween(clip1, "_x, _scale");
 
// kill all tweens in multiple targets
ZigoEngine.removeTween([clip2,clip3,clip4]); </pre>The <code>onTweenInterrupt</code> event is fired by the engine when this method is used (see <a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#addListener">addListener</a> for more info).</div> </dd> </dl> <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Param&egrave;tres:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">targs</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">a single target object, array of targets, or <a href="../../../com/mosesSupposes/fuse/FuseKitCommon.html#ALL">FuseKitCommon.</a><a href="../../../com/mosesSupposes/fuse/FuseKitCommon.html#ALL">ALL</a> for every active target</div></td> </tr> <tr> <td valign="top" align="left"><span class="parameter">props</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">a property string, array of property strings, null or nothing for all props, <a href="../../../com/mosesSupposes/fuse/FuseKitCommon.html#ALLCOLOR">FuseKitCommon.</a><a href="../../../com/mosesSupposes/fuse/FuseKitCommon.html#ALLCOLOR">ALLCOLOR</a> for any active color transform
</div></td> </tr> </table> </dd> </dl></td> </tr>
</table><a name="resumeTween"></a>
<h3>resumeTween</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public static </span><span class="askeyword">function </span>resumeTween</span></td> <td align="left" valign="top"><span class="code">(targs:</span> <span class="code">Object, </span> <br><span class="code"> props:</span> <span class="code">Object):</span> <span class="code">Void</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Unpause one or more tweens. <p></p> <dl compact> <dt><b>Utilisation:</b></dt> <dd> <div class="comment"> <pre>ZigoEngine.resumeTween(clip1);
 
// resume all engine tweens in the swf
ZigoEngine.resumeTween(FuseKitCommon.ALL);</pre> </div> </dd> </dl> <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Param&egrave;tres:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">targs</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">a single target object, array of targets, or <a href="../../../com/mosesSupposes/fuse/FuseKitCommon.html#ALL">FuseKitCommon.</a><a href="../../../com/mosesSupposes/fuse/FuseKitCommon.html#ALL">ALL</a> for every active target</div></td> </tr> <tr> <td valign="top" align="left"><span class="parameter">props</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">a property string, array of property strings, null or nothing for all props, <a href="../../../com/mosesSupposes/fuse/FuseKitCommon.html#ALLCOLOR">FuseKitCommon.</a><a href="../../../com/mosesSupposes/fuse/FuseKitCommon.html#ALLCOLOR">ALLCOLOR</a> for any active color transform
</div></td> </tr> </table> </dd> </dl></td> </tr>
</table><a name="rewTween"></a>
<h3>rewTween</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public static </span><span class="askeyword">function </span>rewTween</span></td> <td align="left" valign="top"><span class="code">(targs:</span> <span class="code">Object, </span> <br><span class="code"> props:</span> <span class="code">Object, </span> <br><span class="code"> pauseFlag:</span> <span class="code">Boolean, </span> <br><span class="code"> suppressStartEvents:</span> <span class="code">Boolean):</span> <span class="code">Void</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Rewinds and either pauses or restarts one or more tweens <p></p> <dl compact> <dt><b>Utilisation:</b></dt> <dd> <div class="comment"> <pre>ZigoEngine.doTween(clip1, "_x, _xscale, _alpha", ["100", 200, 0], 1, "easeInOutExpo");
// during tween, rewind just the slide and scale but allow the fade-out to run:
ZigoEngine.rewTween(clip1, "_x, _scale");
 
// rewind and pause all tweens in several targets
ZigoEngine.rewTween([clip2,clip3,clip4], null, true);
 
// You may not want start callbacks and/or events to re-fire on rewind.
// These can be suppressed using the 4th parameter as in this example.
var listenerObj:Object = new Object();
listenerObj.onTweenStart = function(o:Object):Void {
	trace(o.target+" start Event, props started: "+o.props);
};
ZigoEngine.initialize(clip5); // prepares clip to add a listener
clip5.addListener(listenerObj);
ZigoEngine.doTween(clip5, "_x", "100", 3, "easeInOutBack", 0,
						{startfunc:function(){trace("Start Callback!");}});
function onMouseDown() {
	// click the stage to restart the animation before it ends.
	// the events are not refired.
	ZigoEngine.rewTween(clip5, null, false, true);
}</pre> </div> </dd> </dl> <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Param&egrave;tres:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">targs</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">a single target object, array of targets, or <a href="../../../com/mosesSupposes/fuse/FuseKitCommon.html#ALL">FuseKitCommon.</a><a href="../../../com/mosesSupposes/fuse/FuseKitCommon.html#ALL">ALL</a> for every active target</div></td> </tr> <tr> <td valign="top" align="left"><span class="parameter">props</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">a property string, array of property strings, null or nothing for all props, <a href="../../../com/mosesSupposes/fuse/FuseKitCommon.html#ALLCOLOR">FuseKitCommon.</a><a href="../../../com/mosesSupposes/fuse/FuseKitCommon.html#ALLCOLOR">ALLCOLOR</a> for any active color transform</div></td> </tr> <tr> <td valign="top" align="left"><span class="parameter">pauseFlag</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">true to rewind-and-pause</div></td> </tr> <tr> <td valign="top" align="left"><span class="parameter">suppressStartEvents</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">if true is not passed, engine will refire 'onTweenStart' event and any start callbacks associated with the tween
</div></td> </tr> </table> </dd> </dl></td> </tr>
</table><a name="setColorByKey"></a>
<h3>setColorByKey</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public static </span><span class="askeyword">function </span>setColorByKey</span></td> <td align="left" valign="top"><span class="code">(targetObj:</span> <span class="code">Object, </span> <br><span class="code"> type:</span> <span class="code">String, </span> <br><span class="code"> amt:</span> <span class="code">Number, </span> <br><span class="code"> rgb:</span> <span class="code">Object):</span> <span class="code">Void</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">(General) Color-transforms a target by keyword. <p></p> <div class="comment">Example: <code>ZigoEngine.setColorByKey(my_mc, 'tint', 50, 0x33FF00);</code></div> <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Param&egrave;tres:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">targetObj</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">MovieClip or target to alter</div></td> </tr> <tr> <td valign="top" align="left"><span class="parameter">type</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">String <code>"brightness", "brightOffset", "contrast", "invertColor", or "tint"</code></div></td> </tr> <tr> <td valign="top" align="left"><span class="parameter">amt</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">Percentage, can be negative in some cases</div></td> </tr> <tr> <td valign="top" align="left"><span class="parameter">rgb</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">For "tint", a color value in 0x000000 or "#000000" format
</div></td> </tr> </table> </dd> </dl></td> </tr>
</table><a name="setControllerDepth"></a>
<h3>setControllerDepth</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public static </span><span class="askeyword">function </span>setControllerDepth</span></td> <td align="left" valign="top"><span class="code">(depth:</span> <span class="code">Number):</span> <span class="code">Void</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Creates a clip in the _root timeline called "ZigoEnginePulse" or sets its depth <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Param&egrave;tres:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">depth</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">If null or nothing passed the beacon clip is placed at depth 6789, but a depth of 0 will be more convenient if you'll be using depth management in _root.
</div></td> </tr> </table> </dd> </dl></td> </tr>
</table><a name="setUpdateInterval"></a>
<h3>setUpdateInterval</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public static </span><span class="askeyword">function </span>setUpdateInterval</span></td> <td align="left" valign="top"><span class="code">(time:</span> <span class="code">Number):</span> <span class="code">Void</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">When set, the engine will run on a setInterval pulse instead of a frame pulse. <p></p> <div class="comment">In most cases it is best to leave the engine in its default state since a frame-based pulse usually renders more smoothly. The engine always uses seconds for tween duration so using a longer interval will only reduce animation quality, not slow tweens down. This may be desirable in some cases, for instance to reduce CPU usage in banners.</div> <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Param&egrave;tres:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">time</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">Pulse duration in milliseconds, or null/undefined to return to an frame-based pulse.
</div></td> </tr> </table> </dd> </dl></td> </tr>
</table><a name="simpleSetup"></a>
<h3>simpleSetup</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public static </span><span class="askeyword">function </span>simpleSetup</span></td> <td align="left" valign="top"><span class="code">(shortcutsClass:</span> <span class="code">Function):</span> <span class="code">Void</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">An alternative setup command that extends prototypes with shortcuts like <code>alphaTo</code>. <p></p> <div class="comment">This setup command should only be called once at the beginning of your program. Use either this or <a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#register">register</a>, not both. The difference is that <code>simpleSetup</code> alters base prototypes so that you may call tween methods directly on targets, such as <code>my_mc.alphaTo(0);</code>. <br> <br>Example: <pre>import com.mosesSupposes.fuse.*;
ZigoEngine.simpleSetup(Shortcuts,PennerEasing); </pre>Note that to keep filesize to a minimum you should only register the features you intend to use. Use publish settings to "omit trace actions" to further reduce filesize.</div> <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Param&egrave;tres:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">shortcutsClass</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment"><b>It is madadory to pass the <a href="../../../com/mosesSupposes/fuse/Shortcuts.html">Shortcuts</a> class during this call!</b> You may additionally pass any of the following classes (all are optional), as in the way PennerEasing is added above. <li><code>PennerEasing</code> Enables shortcut strings like "easeOutQuad" to be used with the engine. See <a href="../../../com/mosesSupposes/fuse/PennerEasing.html">PennerEasing</a></li> <li><code>Fuse</code> Enables Fuse for animation sequencing. Note that if animation won't be sequenced you do may simply import and use Fuse without ZigoEngine. See <a href="../../../com/mosesSupposes/fuse/Fuse.html">Fuse</a></li> <li><code>FuseFMP</code> Enables shortcut strings like <code>DropShadow_distance</code> to be tweened in the engine. See <a href="../../../com/mosesSupposes/fuse/FuseFMP.html">FuseFMP</a></li> <li><code>FuseItem</code> Enables Fuse-style Object Syntax to be used with the <code>ZigoEngine.doTween</code>. Note that Fuse does not need to be registered to use this feature. See <a href="../../../com/mosesSupposes/fuse/FuseItem.html">FuseItem</a>
</li> </ul> </div></td> </tr> </table> </dd> </dl></td> </tr>
</table><a name="skipTweenTo"></a>
<h3>skipTweenTo</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public static </span><span class="askeyword">function </span>skipTweenTo</span></td> <td align="left" valign="top"><span class="code">(seconds:</span> <span class="code">Number, </span> <br><span class="code"> targs:</span> <span class="code">Object, </span> <br><span class="code"> props:</span> <span class="code">Object):</span> <span class="code">Void</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Jumps a tween to a specific point in its duration. <p></p> <div class="comment">Results vary dramatically based on the easing style used.</div> <p></p> <dl compact> <dt><b>Utilisation:</b></dt> <dd> <div class="comment"> <pre>// jump to halfway through a 2-second tween
ZigoEngine.skipTweenTo(1, clip1);</pre> </div> </dd> </dl> <p></p></td> </tr> <tr> <td valign="top" align="left"><dl compact> <dt><b>Param&egrave;tres:</b><br> </dt> <dd> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td valign="top" align="left"><span class="parameter">seconds</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">amount of time within the tween duration to jump to (for instance, in a 1.5-second tween, .75 jumps to the halfway point).</div></td> </tr> <tr> <td valign="top" align="left"><span class="parameter">targs</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">a single target object, array of targets, or <a href="../../../com/mosesSupposes/fuse/FuseKitCommon.html#ALL">FuseKitCommon.</a><a href="../../../com/mosesSupposes/fuse/FuseKitCommon.html#ALL">ALL</a> for every active target</div></td> </tr> <tr> <td valign="top" align="left"><span class="parameter">props</span></td> <td width="20"><br></td> <td valign="top" align="left"><div class="comment">a property string, array of property strings, null or nothing for all props, <a href="../../../com/mosesSupposes/fuse/FuseKitCommon.html#ALLCOLOR">FuseKitCommon.</a><a href="../../../com/mosesSupposes/fuse/FuseKitCommon.html#ALLCOLOR">ALLCOLOR</a> for any active color transform
</div></td> </tr> </table> </dd> </dl></td> </tr>
</table><a name="unpauseTween"></a>
<h3>unpauseTween</h3>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="members_documentation_table"> <tr> <td valign="top" align="left"><table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" valign="top"><span class="code"><span class="modifier">public static </span><span class="askeyword">function </span>unpauseTween</span></td> <td align="left" valign="top"><span class="code">(targs:</span> <span class="code">Object, </span> <br><span class="code"> props:</span> <span class="code">Object):</span> <span class="code">Void</span></td> </tr> </table></td> </tr>
</table>
<table cellpadding="0" cellspacing="10" border="0" width="100%"> <tr> <td valign="top" align="left">Legacy - see <a href="../../../com/mosesSupposes/fuse/ZigoEngine.html#resumeTween">resumeTween</a>  <p></p></td> </tr> <tr> <td valign="top" align="left"></td> </tr>
</table>
<hr size="1">
<p></p>The documentation was generated from the following file:<br>
<ul> <li>ZigoEngine.as, Last Modified: 1/13/2007 4:26:20 PM
</li>
</ul>
<p></p>
<hr size="1">
</body>
</html><span class="footer">G&eacute;n&eacute;r&eacute;e le 1/14/2007 11:31:53 PM</span>
